from django.core.cache import cache
from django.http import HttpResponse


def index(request):
    cache.set("username", "dimingda", 120)
    username = cache.get("username")
    print(username)
    return HttpResponse("sss")